<?php 
$time = time();
$sql = "update tttj.goods set dstatus=2 where dstatus=1 and (dijia_part=1 or dujia=1) and saletime<$time-3600*24*3";
exec_db($sql);

?>